home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
CrtInterp.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
67 lines
Tcl_CreateInterp(3) Tcl Library Procedures
_________________________________________________________________
NAME
Tcl_CreateInterp, Tcl_DeleteInterp - create and delete Tcl
command interpreters
SYNOPSIS
#include <tcl.h>
Tcl_Interp *
Tcl_CreateInterp()
Tcl_DeleteInterp(_i_n_t_e_r_p)
ARGUMENTS
Tcl_Interp *_i_n_t_e_r_p (in) Token for interpreter to be
destroyed.
_________________________________________________________________
DESCRIPTION
Tcl_CreateInterp creates a new interpreter structure and
returns a token for it. The token is required in calls to
most other Tcl procedures, such as Tcl_CreateCommand,
Tcl_Eval, and Tcl_DeleteInterp. Clients are only allowed to
access a few of the fields of Tcl_Interp structures; see
the Tcl_Interp and Tcl_CreateCommand man pages for details.
The new interpreter is initialized with no defined variables
and only the built-in Tcl commands. To bind in additional
commands, call Tcl_CreateCommand.
Tcl_DeleteInterp destroys a command interpreter and releases
all of the resources associated with it, including vari-
ables, procedures, and application-specific command bind-
ings. After Tcl_DeleteInterp returns the caller should
never again use the _i_n_t_e_r_p token.
KEYWORDS
command, create, delete, interpreter
Tcl 1